package com.peng.community.controller;

import com.peng.community.util.CommunityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/alpha")
public class AlphaController {

    @ResponseBody
    @PostMapping("/ajax")
    public String helloAjax(String name) {
        return CommunityUtils.toJsonString(0,"你好" + name, null);
    }
}
